package org.osomit.sacct.io.iface;

import org.osomit.sacct.io.impl.JSONServerReaderWriter;
import org.osomit.sacct.entity.Request;
import org.osomit.sacct.entity.Response;
import org.osomit.sacct.entity.SecureRequest;
import org.osomit.sacct.entity.SecureResponse;
import com.google.inject.ImplementedBy;

import java.io.BufferedReader;
import java.io.OutputStream;

/**
 * @author Jian Fang (John.Jian.Fang@gmail.com)
 *
 * Date: Jun 29, 2009
 */
@ImplementedBy(JSONServerReaderWriter.class)
public interface ServerReaderWriter {
    public SecureRequest read(BufferedReader reader);
    public void write(OutputStream outputStream, SecureResponse response);
}
